package cn.yshujia.domain.vo;

import cn.yshujia.domain.entity.Comment;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * @author YShuJia
 * @create 2024/12/16
 * @description CommentVO
 */

@Data
@EqualsAndHashCode (callSuper = true)
public class CommentVO extends Comment implements Serializable {
	
	@Schema (description = "用户ID")
	private UserVO user;
	
	@Schema (description = "父评论用户")
	private UserVO parentUser;
	
	@Schema (description = "子评论")
	private List<CommentVO> children;
}
